package com.exigenservices.practice.roadcompanion.web;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;

//TODO rename
public class profileController  implements Controller {
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        String now = (new Date()).toString();

        ModelAndView result =  new ModelAndView("profile");
        result.addObject("name", "null");
        result.addObject("sname", "null");

        return result;

    }
}
